cmake_minimum_required(VERSION 3.0.0)

project(clib VERSION 0.1.0 LANGUAGES C)
set(CMAKE_BUILD_TYPE "Debug")
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -lstdc++") 
#添加包含头文件目录
include_directories(core/inc core/net /usr/include/c++/11 /usr/include/x86_64-linux-gnu/c++/11)

add_executable(test_config.exe  test/test_config.c core/src/clib_backtrace.c core/src/clib_config.c)

#add_executable(test_lock.exe  test/test_lock.c core/src/clib_log.c)
#target_link_libraries(test_lock.exe pthread)

add_executable(tcp_buff.exe test/test_tcp_buffer.c core/net/clib_tcp_buffer.c)